package com.huilan.hgt.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.huilan.hgt.base.BaseModel;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author ghy
 * @since 2018-11-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("T_EMAIL_ATTACHMENT")
public class EmailAttachment extends BaseModel<EmailAttachment> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "ID", type = IdType.AUTO)
    private Integer id;

    /**
     * 邮件主键
     */
    @TableField("EMAIL_ID")
    private Integer emailId;

    /**
     * 附件编码
     */
    @TableField("ATTACHMENT_CODE")
    private String attachmentCode;


    public static final String ID = "ID";

    public static final String EMAIL_ID = "EMAIL_ID";

    public static final String ATTACHMENT_CODE = "ATTACHMENT_CODE";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
